import { httpSever } from '@/http/index'

export const getCode = (data: { phone: string}) => httpSever({
    method: 'POST',
    url: 'zhc/getCode',
    data,
})


export const getList = () => httpSever({
    method: 'POST',
    url: 'zhc/getList',
})

export const phonelogin = (data: { phone: string,code:string,time:number}) => httpSever({
    method: 'POST',
    url: 'zhc/phoneLogin',
    data,
})

//用于验证身份
export const verifyCode=(data:{phone:string,code:string})=>httpSever({
    method: 'POST',
    url: 'zhc/verifyCode',
    data,
})


export const updatePsd=(data:{_id:string,password:string})=>httpSever({
    method: 'POST',
    url: 'zhc/updatePsd',
    data,
})